﻿using System.Text;
namespace TI_BLE_HCI_ClientLib.DataEntities.Advertising
{
    public class LocalNameAdvertisingDataStructure : AdvertisingDataStructure
    {
        string _deviceName;

        public string DeviceName
        {
            get { return _deviceName; }
            set { _deviceName = value; }
        }

        public LocalNameAdvertisingDataStructure(AdvertisingDataStructureTypeEnum deviceNameType, string deviceName)
            : base(deviceNameType, Encoding.UTF8.GetBytes(deviceName))
        {
            _deviceName = deviceName;
        }
    }
}